package com.qqtech.qquan.hi.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.hi.model.HiUserTask;

@Repository
public class HiUserTaskDaoImpl extends BaseDaoImpl<HiUserTask> implements HiUserTaskDao {
	public static final Logger log = LoggerFactory.getLogger(HiUserTaskDaoImpl.class);
	
	@Override
	public int finishOneTask(Integer userId, Integer ruleId) {
		HiUserTask task = new HiUserTask();
		task.setUserId(userId);
		task.setRuleId(ruleId);
		return sqlSessionTemplate.update(getSqlName("finishOneTask"), task);
	}
}
